package com.mynameisguillaume.utils.math 
{
	import flash.geom.Point;

	/**
	 * ...
	 * @author guibar
	 */
	public class MathUtils 
	{

		public static function toRad(pDeg : Number) : Number
		{
			return pDeg * Math.PI / 180;
		}

		public static function toDeg(pRad : Number) : Number
		{
			return pRad * 180 / Math.PI;
		}

		public static function betweenTwoPoint(pPoint1 : Point, pPoint2 : Point) : Number
		{
			var dx : Number = pPoint2.x - pPoint1.x;
			var dy : Number = pPoint2.y - pPoint1.y;
			return Math.sqrt(dx * dx + dy * dy);
		}
	}
}